package com.qujia.station.mapper;


import com.qujia.station.domain.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupplierMapper {
    int deleteByPrimaryKey(Long supplierId);

    int insert(Supplier record);

    int insertSelective(Supplier record);

    Supplier selectByPrimaryKey(Long supplierId);

    int updateByPrimaryKeySelective(Supplier supplier);

    int updateByPrimaryKey(Supplier supplier);

    Supplier selectBySupplierCode(@Param("supplierCode") String supplierCode);

    int deleteSupplier(@Param("supplierIdList") List<Long> supplierIdList);

    List<Supplier> selectSupplierList(Supplier supplier);

    //商品列表展示供应商
    Supplier selectOneSupplier(Supplier supplier);

    List<Supplier> selectSupplierAllList();
}